// @ts-ignore
import result from '/@utils/Axios.ts'

// 获取识别记录
export function getImageRecognitionList(params:any){
    return result({
        url:'/api/image_recognition/imageRecognitionList/',
        method:'get',
        params:params
    })
}
//删除识别记录
export function deleteImageRecognition(id:any){
    return result({
        url:'/api/image_recognition/imageRecognitionList/',
        method:'delete',
        data: {id}
    })
}

export function getImageRecognitionStatistics(){
    return result({
        url:'/api/image_recognition/imageRecognitionStatistics/',
        method:'get'
    })
}

export function deleteImageRecognitionHistory(id:number){
    return result({
        url:`/api/image_recognition/images/${id}/`,
        method:'delete',
    })
}
